<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="ColorModifier,jp.raohmaru.effects.ColorModifier,brightness,contrast,hue,saturation,target,getColorMatrix,invert,restore,toGrayscale" name="keywords">
<title>jp.raohmaru.effects.ColorModifier</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ColorModifier - Raohmaru AS3 Framework';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Raohmaru AS3 

Framework</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?jp/raohmaru/effects/ColorModifier.html&amp;jp/raohmaru/effects/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ColorModifier</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ColorModifier"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">jp.raohmaru.effects</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ColorModifier</td>
</tr>
</table>
<p></p>
 La clase effects.ColorModifier permite aplicar de una manera rápida efectos de color a objetos de visualización.
 Una instancia de ColorModifier Añade un filtro ColorMatrixFilter al objeto DisplayObject relacionado, permitiendo modificar los valores
 de brillo, contraste, saturación y tonalidad.<br>
 Para hacer la transformación de color, se utiliza el objeto ColorMatrixEx.
 <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../geom/ColorMatrixEx.html" target="">jp.raohmaru.geom.ColorMatrixEx</a>
<br>flash.filters.ColorMatrixFilter</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#brightness">brightness</a> : Number<div class="summaryTableDescription">
   Cambia el brillo del objetivo especificado.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#contrast">contrast</a> : Number<div class="summaryTableDescription">
   Cambia el contraste del objetivo especificado.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#hue">hue</a> : Number<div class="summaryTableDescription">
   Cambia el valor del tono del objetivo especificado.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#saturation">saturation</a> : Number<div class="summaryTableDescription">
   Cambia la saturación del objetivo especificado.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#target">target</a> : DisplayObject<div class="summaryTableDescription">
  Establece el objeto de visualización en el que se aplicarán los efectos de color.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ColorModifier()">ColorModifier</a>(target:DisplayObject)</div>
<div class="summaryTableDescription">
   Crea una instancia de ColorModifier.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getColorMatrix()">getColorMatrix</a>():Array</div>
<div class="summaryTableDescription">
   Obtiene una copia de la matriz de transformación utilizada por la instancia actual de ColorModifier.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#invert()">invert</a>():void</div>
<div class="summaryTableDescription">
   Invierte los colores del objeto DisplayObject.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#restore()">restore</a>():void</div>
<div class="summaryTableDescription">
   Restaura los valores de brillo, contraste, saturación y tono del objeto DisplayObject asociado.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toGrayscale()">toGrayscale</a>(amount:Number = 1):void</div>
<div class="summaryTableDescription">
   Convierte a escala de grises un objeto DisplayObject.</div>
</td><td class="summaryTableOwnerCol">ColorModifier</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="brightness"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">brightness</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>brightness:Number</code>&nbsp;&nbsp;[read-write]<p>
   Cambia el brillo del objetivo especificado. Los valores van desde -1 (completamente oscuro), 0 (normal) a 1 (completamente brillante).<br>
   </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get brightness():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set brightness(value:Number):void</code>
<br>
<br>
<span class="label">Example</span>
<br>  <div class='listing'><pre>
  import jp.raohmaru.effects.Color;

  var color_mod : ColorModifier = new ColorModifier(some_mc);
  color_mod.brightness = 0.5;</pre></div>
   <p></p>
</div>
<a name="contrast"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">contrast</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>contrast:Number</code>&nbsp;&nbsp;[read-write]<p>
   Cambia el contraste del objetivo especificado. Los valores van desde -1 (sin contrase), 0 (normal) a 1 (contrase máximo).<br>
   </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get contrast():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set contrast(value:Number):void</code>
<br>
<br>
<span class="label">Example</span>
<br>  <div class='listing'><pre>
  import jp.raohmaru.effects.Color;

  var color_mod : ColorModifier = new ColorModifier(some_mc);
  color_mod.contrast = 5.5;</pre></div>
   <p></p>
</div>
<a name="hue"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hue</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>hue:Number</code>&nbsp;&nbsp;[read-write]<p>
   Cambia el valor del tono del objetivo especificado. Los valores van desde -180 a 180 (en grados).
   </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get hue():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set hue(value:Number):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">flash.filters.ColorMatrixFilter</div>
<br>
<span class="label">Example</span>
<br>  <div class='listing'><pre>
  import jp.raohmaru.effects.Color;

  var color_mod : ColorModifier = new ColorModifier(some_mc);
  color_mod.hue = 120;</pre></div>
   <p></p>
</div>
<a name="saturation"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">saturation</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>saturation:Number</code>&nbsp;&nbsp;[read-write]<p>
   Cambia la saturación del objetivo especificado. Los valores van desde -1 (completamente desaturado), 0 (normal) a 8+ (muy saturado).
   </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get saturation():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set saturation(value:Number):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">flash.filters.ColorMatrixFilter</div>
<br>
<span class="label">Example</span>
<br>  <div class='listing'><pre>
  import jp.raohmaru.effects.Color;

  var color_mod : ColorModifier = new ColorModifier(some_mc);
  color_mod.saturation = 10;</pre></div>
   <p></p>
</div>
<a name="target"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">target</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>target:DisplayObject</code>&nbsp;&nbsp;[read-write]<p>
  Establece el objeto de visualización en el que se aplicarán los efectos de color.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get target():DisplayObject</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set target(value:DisplayObject):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ColorModifier()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ColorModifier</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ColorModifier(target:DisplayObject)</code><p>
   Crea una instancia de ColorModifier.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:DisplayObject</code> &mdash; Un objeto de visualización en el que se aplicarán los efectos de color
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="getColorMatrix()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getColorMatrix</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function getColorMatrix():Array</code><p>
   Obtiene una copia de la matriz de transformación utilizada por la instancia actual de ColorModifier.
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Array</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geom/ColorMatrixEx.html" target="">jp.raohmaru.geom.ColorMatrixEx</a>
</div>
</div>
<a name="invert()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">invert</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function invert():void</code><p>
   Invierte los colores del objeto DisplayObject. Este método es un atajo a <code>contrast = -4</code>. Para restaurar la imagen, utilizar
   <code>contrast = 0</code>.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../effects/ColorModifier.html#contrast" target="">contrast</a>
</div>
</div>
<a name="restore()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">restore</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function restore():void</code><p>
   Restaura los valores de brillo, contraste, saturación y tono del objeto DisplayObject asociado.
   </p></div>
<a name="toGrayscale()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toGrayscale</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toGrayscale(amount:Number = 1):void</code><p>
   Convierte a escala de grises un objeto DisplayObject. Este método es un atajo a <code>ColorModifier.saturation()</code>.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">amount</span>:Number</code> (default = <code>1</code>)<code></code> &mdash; Porcentaje que se aplica al efecto, expresado como valor decimal entre <code>0</code> (normal) y <code>1</code> (en escala de grises)
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../effects/ColorModifier.html#saturation" target="">saturation</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://www.raohmaru.com</center>
</div>
</body>
</html>
<!--http://www.raohmaru.com-->
